package com.example.walletdemo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@ApiModel(value = "钱包对象",description = "钱包表")
public class Wallet {

    @ApiModelProperty(value = "用户id")
    private int id;

    @ApiModelProperty(value = "用户名称")
    private String username;

    @ApiModelProperty(value = "余额")
    private double balance;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
